/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Eastern Miwok</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A18463 (C-0-T18130-A18413-A18458-A18459-A18463-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getEasternMiwok()
 * @model extendedMetaData="name='EasternMiwok'"
 * @generated
 */
public enum EasternMiwok implements Enumerator {
	/**
	 * The '<em><b>XCSM</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XCSM_VALUE
	 * @generated
	 * @ordered
	 */
	XCSM(0, "xCSM", "x-CSM"),

	/**
	 * The '<em><b>XNSQ</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XNSQ_VALUE
	 * @generated
	 * @ordered
	 */
	XNSQ(1, "xNSQ", "x-NSQ"),

	/**
	 * The '<em><b>XPMW</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XPMW_VALUE
	 * @generated
	 * @ordered
	 */
	XPMW(2, "xPMW", "x-PMW"),

	/**
	 * The '<em><b>XSKD</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XSKD_VALUE
	 * @generated
	 * @ordered
	 */
	XSKD(3, "xSKD", "x-SKD");

	/**
	 * The '<em><b>XCSM</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XCSM</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XCSM
	 * @model name="xCSM" literal="x-CSM"
	 * @generated
	 * @ordered
	 */
	public static final int XCSM_VALUE = 0;

	/**
	 * The '<em><b>XNSQ</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XNSQ</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XNSQ
	 * @model name="xNSQ" literal="x-NSQ"
	 * @generated
	 * @ordered
	 */
	public static final int XNSQ_VALUE = 1;

	/**
	 * The '<em><b>XPMW</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XPMW</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XPMW
	 * @model name="xPMW" literal="x-PMW"
	 * @generated
	 * @ordered
	 */
	public static final int XPMW_VALUE = 2;

	/**
	 * The '<em><b>XSKD</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XSKD</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XSKD
	 * @model name="xSKD" literal="x-SKD"
	 * @generated
	 * @ordered
	 */
	public static final int XSKD_VALUE = 3;

	/**
	 * An array of all the '<em><b>Eastern Miwok</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final EasternMiwok[] VALUES_ARRAY =
		new EasternMiwok[] {
			XCSM,
			XNSQ,
			XPMW,
			XSKD,
		};

	/**
	 * A public read-only list of all the '<em><b>Eastern Miwok</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<EasternMiwok> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Eastern Miwok</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EasternMiwok get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			EasternMiwok result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Eastern Miwok</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EasternMiwok getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			EasternMiwok result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Eastern Miwok</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EasternMiwok get(int value) {
		switch (value) {
			case XCSM_VALUE: return XCSM;
			case XNSQ_VALUE: return XNSQ;
			case XPMW_VALUE: return XPMW;
			case XSKD_VALUE: return XSKD;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EasternMiwok(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //EasternMiwok
